.PHONY:all 
all:protobuf_server protobuf_client	
protobuf_client:protobuf_client.cpp ../include/muduo/proto/codec.cc request.pb.cc
	g++ -o $@ $^ -std=c++11 -I../include -L../lib -lmuduo_net -lmuduo_base -pthread -lprotobuf -lz

protobuf_server:protobuf_server.cpp ../include/muduo/proto/codec.cc request.pb.cc
	g++ -o $@ $^ -std=c++11 -I../include -L../lib -lmuduo_net -lmuduo_base -pthread -lprotobuf -lz
.PHONY:clean
clean:
	rm -f protobuf_server protobuf_client